<!DOCTYPE html>
<html>
<head lang="en">
	<meta charset="UTF-8" />
	<title></title>
	<script th:src="@{/static/js/jquery.min.js}"></script>
	<script>
		$(function() {
			$("#sendAjax").click(function() {
				$.ajax({
					url: "/simples/get/1",
					success: function(result) {
						console.log(result);
						if(result.flag) {
							console.log(result.data)
						}
					}
				});
			});
		});
	</script>
</head>

<body>
	Thymeleaf模板引擎
	<h1 th:text="${name}">hello world~~~~~~~</h1>
	
	<button id="sendAjax">发送Ajax请求</button>
	
	<img th:src="@{/static/imgs/aa.jpg}" style="width: 100px; height: 100px;">
	
</body>
</html>